home *** CD-ROM | disk | FTP | other *** search
- /*** info.c ***/
-
- #include "windows.h"
- #include <string.h>
- #include "fce.h"
- #include "info.h"
- #include "message.h"
-
- extern HWND hInfoWnd;
-
- static char InfoText[32];
- void Message(LPSTR);
-
- void InfoFileMsg(long Size)
- {
- wsprintf((LPSTR)InfoText,"%ld bytes. ",Size);
- }
-
- long FAR PASCAL InfoWndProc(HWND hWnd,UINT iMessage, UINT wParam, LONG lParam)
- {HDC hDC;
- hInfoWnd = hWnd;
- switch(iMessage)
- {case WM_USER:
- hDC = GetDC(hInfoWnd);
- SetMapMode(hDC,MM_ANISOTROPIC);
- SelectObject(hDC, GetStockObject(OEM_FIXED_FONT) );
- TextOut(hDC, 2, 2, (LPSTR)InfoText, lstrlen(InfoText) );
- ReleaseDC(hInfoWnd,hDC);
- break;
-
- case WM_DESTROY:
- PostQuitMessage(0);
- break;
- default:
- return DefWindowProc(hInfoWnd,iMessage,wParam,lParam);
- } /* end switch */
- return 0L;
- }
-
-